package com.mab.mall.auth.feign;


import com.mab.mall.auth.vo.LoginVo;
import com.mab.mall.auth.vo.SocialUser;
import com.mab.mall.auth.vo.UserRegisterVo;
import com.msb.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("mall-member")
public interface MemberFeignService {


    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody LoginVo vo);


    @RequestMapping("/member/member/oauth2/login")
    R oauth2Login(@RequestBody SocialUser user);
}
